﻿#region 文件信息

// FileName: SoCafeShop/Sohobloo.SoAuth.Data/SoAuthUserConfiguration.cs
// Author: Sohobloo
// CreateTime: 2013/06/28 20:31
// UpdateTime: 2013/06/30 3:41

#endregion

#region 引用

using Sohobloo.SoAuth.Entity;
using Sohobloo.SoMcCoffee.Data;

#endregion

namespace Sohobloo.SoAuth.Data.Configurations
{
    public class SoAuthUserConfiguration : EntityConfigurationBase<SoAuthUser>
    {
        public override void Configurate()
        {
            base.Configurate();
            HasMany(u => u.UserRoles).WithMany(r => r.RoleUsers).Map(ur => ur.ToTable("SoAuthRoleUsers"));
        }
    }
}